package com.zking.ssm.sys.service;

import com.zking.ssm.sys.model.Role;
import com.zking.ssm.util.PageBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IRoleService {

    int deleteByPrimaryKey(Long roleId);

    int insert(Role record);

    int insertSelective(Role record);

    @Transactional(readOnly = true)
    Role selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    @Transactional(readOnly = true)
    List<Role> list(Role role, PageBean pageBean);

}
